﻿/namespace LeapYearCalculator
{
    class Program
    {
        static void Main()
        {
            int[] testYears = { 2000, 1900, 2004, 2001, 2020 };
            foreach (int year in testYears)
            {
                Console.WriteLine($"{year} 是闰年：{IsLeapYear(year)}");
            }
        }

       
        static bool IsLeapYear(int year)
        {
            if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
            {
                return true;
            }
            return false;
        }
    }
}